<%-- 
    Document   : manage_eca_edit
    Created on : Jul 23, 2012, 3:29:37 AM
    Author     : Don
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        
        <style type ="text/css">
        @import url(admin/css/jqtransform.css);
        @import url(admin/css/validationEngine.jquery.css);
        @import url(admin/css/ui-lightness/jquery-ui-1.8.19.custom.css);
        </style>
        
        <script type="text/javascript" src="admin/js/jquery-latest.js"></script>
        <script type="text/javascript" src="admin/js/jquery-ui-1.8.19.custom.min.js"></script>
        <script type="text/javascript" src="admin/js/jquery"></script>
        <script type="text/javascript" src="admin/js/jquery.jqtransform.js"></script>
        
        <script type="text/javascript" src="admin/js/jquery.validationEngine-en.js"></script>
        <script type="text/javascript" src="admin/js/jquery.validationEngine.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){
                
                
                //find all form with class jqtransform and apply the plugin
                $("form.jqtransform").jqTransform();
                
                $('#date').datepicker({ dateFormat: 'yy-mm-dd' });
                $('#add_form').validationEngine('attach');
                $('#cancelForm').click(function(){
                    $('#panel').html(''); 
                });

            });
        </script>
    </head>
    <body>
    Add ECA    
    <form id="add_form" class="jqtransform" method="post" action="${pageContext.request.contextPath}/manage_eca_edit">
    <table style="width: 50%">
        <input type="hidden" name="ecaid" type="text" <c:if test="${!empty ecaItem}"> value="${ecaItem.ecaid}"</c:if>/>
		<tr>
			<td><label> Name</label></td>
			<td><input class="validate[required]" name="name" type="text" <c:if test="${!empty ecaItem}"> value="${ecaItem.name}" </c:if> id='name' class="" title=""/></td>
		</tr>
		<tr>
			<td><label> Date </label></td>
			<td><input class="validate[required,custom[date]] text-input" id="date" name="date" class="validate[required]" type="text" <c:if test="${!empty ecaItem}"> value="${ecaItem.date}" </c:if> /> </td>
		</tr>
		<tr>
			<td><label> Time </label></td>
			<td><input class="validate[required]"  id="time" name="time" type="text" <c:if test="${!empty ecaItem}"> value="${ecaItem.time}" </c:if> /></td>
		</tr>
		<tr>
			<td><label> Points </label></td>
			<td><input class="validate[required,custom[number]] text-input" id="points"  name="points" type="text" <c:if test="${!empty ecaItem}"> value="${ecaItem.points}" </c:if>  /></td>
		</tr>
                <tr>
			<td><label> Classification </label></td>
			<td><input class="validate[required]" id="status" name="status" type="text" <c:if test="${!empty ecaItem}"> value="${ecaItem.status}" </c:if>  /></td>
		</tr>
    </table>
    <input type="submit" id ="addECA" name="addECA" value="Submit"/>
    </form>
    </body>
</html>

